<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>数组</title>
	<script type="text/javascript">
		str = "广州，北京，深圳";
		str1 ="广州";
		str2 ="北京";

		arr = ["广州",'北京','深圳','珠海'];//一唯
		arr1 = [null,45,['345',34,'4',54,[3,33,3,3]],54,5,45,45];


		// alert(arr1.length);


		for (var i = 0; i <arr.length  ; i++) {
			document.write(arr[i]);
		};
		
		for(var i in arr){
			document.write(arr[i]);
		}

		// document.write(arr[1]);
		// document.write(arr1[2][1]);
		// document.write(arr1[2][4][1]);


		// arr2 = [];
		// arr2[3]="广州";
		// arr2[10]='深圳';

		// document.write(arr2);
		// 
		// 
		arr = [45,45,4,5235,6666,67,57,56,756];

		function getMax (newArr) {


			return 最大值返回;
		}

		res = getMax(arr);

		alert(res);



		arr1 = [45,[345,345,3],4,5235,[4,4],67,57,[2,2,2,2,2,5,5],756];

		function getLongSonArr (oldArr) {
			sdjfhkjsdfhkjsdf


			return 返回最长的子数组;
		}

		getLongSonArr(arr1);






	</script>
</head>
<body>
	
</body>
</html>